package cn.stronglink.asset.module.dam.utils.dataJsonUtils.req.send;

import java.util.ArrayList;
import java.util.List;

public class TestCmdFormatUtil {
	public static void changeAndPrint(String s) {
		//每隔两个字符： 加一个空格
		// String s = "138000138001380013800013777777777";
	        List<String> result = new ArrayList<String>();
	        int iPos = 0;
	        int iLen = s.length();
	        while(iLen>=2){
	            String tmp = s.substring(0, 2);
	            result.add(tmp);
	            s= s.substring(2);
	            iLen = s.length();
	        }
	        System.out.println("分开的指令》》》》》》");
	        for(String st:result){
	            System.out.print(st+" ");
	        }
	}

}
